home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1060 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.8 KB  |  58 lines

  1. Path: oxy.rust.net!usenet
  2. From: ebennett@rust.net
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Borlands c/c++ compiler help!!
  5. Date: Thu, 11 Jan 1996 05:15:16 GMT
  6. Organization: Rust Net - High Speed Internet in Detroit  810-642-2276
  7. Message-ID: <4d1rpe$ski@oxy.rust.net>
  8. References: <4cu5f6$fg2@vector.wantree.com.au>
  9. NNTP-Posting-Host: liv-16.rust.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. jpet@wantree.com.au (Jody Petroni) wrote:
  13.  
  14. >Im writing a simple-intermediate application in C I have got a compiler 
  15. >from Borlands which claims to be both for C and C++ .it installs as C++ 3.1
  16. >but compiles my C code satisfactorily except for 2 errors:
  17.  
  18. >1. "Group Overflowed Maximum size:DGROUP"
  19. >2. "Call to function xyz with no prototype"
  20.  
  21. >I have delcared all functions as either void or with their return type
  22. >so I cant quite understand Error 2 . Error 1 is a mystery.
  23.  
  24. >can anyone help!???
  25.  
  26. The DGROUP (which is the default data segment) can only be 64K.  You
  27. have more data in your program than can be handled in one 64K segment.
  28. There are several things you can do to alleviate this:
  29.  
  30. 1) There is a switch to the compiler to put all constant strings in
  31. the code segment
  32.  
  33. 2) You can set the far-data threshold to a lower value. This will
  34. force data structures over the specified size into a far data segment
  35. (out of the default data segment)
  36.  
  37. 3) You can explicitly declare some arrays and structures to be far,
  38. which will force them into their own data segment.
  39.  
  40. As for error 2, the compiler wants to see a prototype of a function
  41. before you call it.  For example, in one source file, you may have:
  42.  
  43.   int someFunction(void);  // this is prototype for someFunction
  44.   int main(int argc, char **argv)
  45.   {
  46.     ...
  47.     int result = someFunction();
  48.   }
  49.  
  50. Then, someFunction may be defined later in the same file, or in a
  51. separate source file.
  52.  
  53. Hope this helps..
  54.  
  55. Earl Bennett
  56.  
  57.  
  58.